<?php
define('IS_DEBUG',			true);

define('ROOT',				dirname(__FILE__) . '/');
define('WWWROOT',			'http://'. $_SERVER['HTTP_HOST'] . ($_SERVER['SERVER_PORT'] == 80 ? 
																	'' : 
																		':' . $_SERVER['SERVER_PORT']) . 
																	'/');

$is_local = false;
switch($_SERVER['SERVER_ADDR']) {
	case '192.168.56.110':
		$is_local = true;
		break;
}
define('IS_LOCAL',			$is_local);

include_once ROOT . '/../ujn2/ujn.php';
ujn_runtime::setSplitAlias('adam');

$cfg 						= require_once PLUGINROOT . '/configs/config.php';
$cfg['controllers_path'] 	= PLUGINROOT  . '/controllers/';
$cfg['templates_path'] 		= PLUGINROOT  . '/templates/';

ujn::runApplication($cfg);